import HomeContent from "@components/Apps/Simulation/HomeContent";
import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import DeviceComponent from "@runtime/module/Device/DeviceComponent";
import MessageHandler from "@runtime/module/Handler/MessageHandler";

/**
 * 设备更新消息处理器
 */
export default class MaintenanceUnityMessageHandler extends MessageHandler<ClientMessage.DisassemblyUnityMessage> {
    protected async RunAsync(message: ClientMessage.DisassemblyUnityMessage): Promise<void> {
        HomeContent.Default.OnReceive(message.Id, message.Content);
    }
}
